# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        Young  
# Name:         less2_01
# Description:
# Author:       asus
# Date:         2019/3/16
#-------------------------------------------------------------------------------


class Animal:
    def __init__(self):
        print('这是构造函数')

    def doprint(self,msg):
        print(msg)

if __name__ == '__main__':
    animal = Animal()
    animal.doprint('hello')


# 课堂作业，传多个参数进去，初始化属性，例如传列表，字典，同时输出

class Work:

    def __init__(self,_list,_dict):
        self._list = _list
        self._dict = _dict

    def getinfo(self):
        return self._list,self._dict

if __name__ == '__main__':
    work = Work([1,2,3],{1:2,2:3})
    print(work.getinfo())

